OPC Studio User's Guide and Reference
FromDAVtq Method (DAVtq<TValue>)



OpcLabs.EasyOpcClassicCore Assembly > OpcLabs.EasyOpc.DataAccess.Generic Namespace > DAVtq<TValue> Class : FromDAVtq Method
A non-generic Value/Timestamp/Quality object to be converted to typed generic.

The value of this parameter can be null (Nothing in Visual Basic).

Creates a typed generic DAVtq<TValue> from non-generic OpcLabs.EasyOpc.DataAccess.DAVtq object.
Syntax
'Declaration
 
<CanBeNullAttribute()>
Public Shared Function FromDAVtq( _
   ByVal vtq As DAVtq _
) As DAVtq(Of TValue)
'Usage
 
Dim vtq As DAVtq
Dim value As DAVtq(Of TValue)
 
value = DAVtq(Of TValue).FromDAVtq(vtq)
[CanBeNull()]
public static DAVtq<TValue> FromDAVtq( 
   DAVtq vtq
)
[CanBeNull()]
public:
static DAVtq<TValue^>^ FromDAVtq( 
   DAVtq^ vtq
) 

Parameters

vtq
A non-generic Value/Timestamp/Quality object to be converted to typed generic.

The value of this parameter can be null (Nothing in Visual Basic).

Return Value

A typed DAVtq<TValue> object made from vtq.

This method can return null (Nothing in Visual Basic).

Remarks
When vtq is null, the return value is also null. An exception is thrown when the vtq does not contain a type assignable to DAVtq<TValue>.
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also